.el-container {
  background-color: rgb(248, 246, 246);
}
.el-header {
  background-color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 1px 1px 5px 1px #eee;
  width: 100%;
  position: fixed;
  top: 0;

  z-index: 999;

  .logo {
    display: flex;
    align-items: center;
    margin: 0 70px;
    img {
      width: 40px;
      height: 40px;
    }
    span {
      font-size: 15px;
    }
  }
  //   导航区域
  .nav {
    display: flex;
    width: 50%;
    margin-left: 220px;
    justify-content: space-between;
    font-size: 13px;
    span {
      color: rgb(136, 125, 125);
    }
    span:hover {
      cursor: pointer;
      color: rgb(65, 61, 61);
    }
  }
}

.el-main {
  width: 930px;
  margin: 0 auto;
  margin-top: 58px;
  position: relative;
  .el-carousel {
    img {
      height: 250px;
      width: 100%;
    }
  }
  // 个人简介
  .decx {
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-top: 0;
    background: url("../../../assets/bgc1.png") no-repeat;
    background-size: cover;
    height: 230px;
    h4 {
      color: rgb(56, 54, 54);
    }
    span {
      font-size: 12px;
      color: rgb(29, 26, 26);
      padding: 9px 0;
    }
    span:nth-child(3) {
      line-height: 19px;
      text-indent: 1em;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
    }
  }

  // 主要内容区
  .textContent {
    margin-top: 20px;

    /deep/ .el-card__body {
      padding: 10px;
    }
    .col {
      margin-top: 10px;
    }
    .card {
      height: 140px;
      display: flex;
      align-items: center;
      .content {
        display: flex;
        align-items: center;
        // 文章的图片
        .img {
          padding-left: 10px;
          height: 110px;
          width: 180px;
          img {
            width: 100%;
            height: 100%;
          }

          img:hover {
            cursor: pointer;
            transform: scale(1.02);
          }
        }

        //  ------
        // 没有图片时列表的样式
        .text1 {
          display: flex;
          flex-direction: column;
          padding-left: 10px;
          width: 100%;
          p {
            font-size: 12px;
            line-height: 18px;
            margin: 0;
            // 文字省略
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
          }
          .title:hover {
            color: rgb(149, 201, 201);
            cursor: pointer;
          }
        }

        //  有图片时列表样式
        .text {
          display: flex;
          flex-direction: column;
          padding-left: 10px;
          width: 320px;
          p {
            font-size: 12px;
            line-height: 18px;
            margin: 0;
            // 文字省略
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
          }
          .title:hover {
            color: rgb(149, 201, 201);
            cursor: pointer;
          }
        }
      }

      .userInfo {
        padding-top: 25px;

        span {
          color: rgb(48, 46, 46);
          font-size: 12px;
          padding: 0 7px;
        }
        span:first-child {
          padding-left: 0;
        }
      }
    }

    // 推荐文章
    .box-card {
      position: absolute;
      top: 0;
      margin-top: 10px;
      width: 259.5px;
      /deep/ .el-card__header {
        padding: 10px 10px;
      }
      .clearfix {
        span {
          font-weight: 800;
        }
        span:nth-child(2) {
          padding-left: 5px;
        }
      }
      //  作者内容
      /deep/.el-card__body {
        padding: 10px;
      }
      // 文章
      .text-item {
        font-family: cursive;
        padding-bottom: 1px;
        p {
          font-size: 15px;
          margin: 5px 0;
        }
        p:last-child {
          font-size: 12px;
          color: rgb(139, 137, 137);
        }
      }
    }
  }

  // 分页
  .fenye {
    margin-top: 20px;
  }
}

.el-footer {
  padding: 0;
  .footerInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    height: 100px;
    background-color: rgb(41, 37, 37);
    span {
      color: #fff;
      font-size: 13px;
      line-height: 25px;
    }
  }
}
